jQuery.validator.addMethod("sfzhm", function(value) {
    return checkSfzhm(value);
}, '\u8eab\u4efd\u8bc1\u53f7\u7801\u4e0d\u6b63\u786e!');
jQuery.validator.addMethod("byteMaxLength", function(value, element, param) {
    var length = value.getBytes();
    return this.optional(element) || byteMaxLength(value, param);
}, jQuery.format("\u8f93\u5165\u7684\u957f\u5ea6\u5fc5\u987b\u5c0f\u4e8e{0}\u4f4d"));
jQuery.validator.addMethod("byteMinLength", function(value, element, param) {
    var length = value.getBytes();
    return this.optional(element) || ( length >= param);
}, jQuery.format("\u8f93\u5165\u7684\u957f\u5ea6\u5fc5\u987b\u5927\u4e8e{0}\u4f4d"));
jQuery.validator.addMethod("notEmpty", function(value, element, param) {
    if (param[1]) {
        var temp = jQuery(param[1]).val();
        if (temp && !isEmpty(temp)) {
            return true;
        }
    }
    switch (element.nodeName.toLowerCase()) {
        case 'select':
            var options = jQuery("option:selected", element);
            return options.length > 0 && ( element.type == "select-multiple" || (jQuery.browser.msie && !(options[0].attributes['value'].specified) ? options[0].text : options[0].value).length > 0);
        case 'input':
            if (this.checkable(element)) {
                return this.getLength(value, element) > 0;
            }
        default:
            return value.length > 0;
    }
}, jQuery.format("\u8bf7\u8f93\u5165{0}"));
jQuery.validator.addMethod("isDate", function(value, element) {
    return this.optional(element) || /^\d{4}[\/-]\d{2}[\/-]\d{2}$/.test(value);
}, "\u8bf7\u8f93\u5165\u4e00\u4e2a\u6b63\u786e\u7684\u65e5\u671f(\u4f8b\uff1a2010-05-01)");
jQuery.validator.addMethod("isNumber", function(value, element) {
    return this.optional(element) || isNumber(value);
}, "\u8bf7\u8f93\u5165\u4e00\u4e2a\u6b63\u786e\u7684\u6570\u5b57");
jQuery.validator.addMethod("isWeight", function(value, element) {
    return this.optional(element) || isWeight(value);
}, "\u8bf7\u8f93\u5165\u4e00\u4e2a\u6b63\u786e\u7684\u91cd\u91cf");
jQuery.validator.addMethod("isDigits", function(value, element) {
    return this.optional(element) || isDigits(value);
}, "\u8bf7\u8f93\u5165\u4e00\u4e2a\u6574\u6570");
jQuery.validator.addMethod("noNumber", function(value, element, param) {
    return this.optional(element) || !hasNumber(value);
}, jQuery.format("{0}\u4e2d\u4e0d\u80fd\u5305\u542b\u6570\u5b57"));
jQuery.validator.addMethod("isUsername", function(value, element) {
    return this.optional(element) || isUsername(value);
}, "\u8bf7\u8f93\u5165\u6570\u5b57\u300126\u4e2a\u82f1\u6587\u5b57\u6bcd\u6216\u8005\u4e0b\u5212\u7ebf"); 